int main() {
	int width = surface->GetWidth();
	int height = surface->GetHeight();
	printf("shijh-test start 4\n");
	static int diff = 0;
	diff += 5;
	for (int i = 0; i < width; i++) {
		for (int j = 0; j < height; j++) {
			uint32_t alpha = (255 * (height - i) / height) << 24;
			int jj = (j + diff) % 100;
			if (0) {
			} else if (height * 0 / 6 <= j && j < height * 1 / 6) {
				p[i * width + j] = 0xff0000 + ((255 * jj / 100) << 8);
			} else if (height * 1 / 6 <= j && j < height * 2 / 6) {
				p[i * width + j] = 0xffff00 - ((255 * jj / 100) << 16);
			} else if (height * 2 / 6 <= j && j < height * 3 / 6) {
				p[i * width + j] = 0x00ff00 + ((255 * jj / 100) << 0);
			} else if (height * 3 / 6 <= j && j < height * 4 / 6) {
				p[i * width + j] = 0x00ffff - ((255 * jj / 100) << 8);
			} else if (height * 4 / 6 <= j && j < height * 5 / 6) {
				p[i * width + j] = 0x0000ff + ((255 * jj / 100) << 16);
			} else if (height * 5 / 6 <= j && j < height * 6 / 6) {
				p[i * width + j] = 0xff00ff - ((255 * jj / 100) << 0);
			}
			p[i * width + j] += alpha;
		}
	}
}
